package cn.tedu._06article.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

@Data
public class UserArticleParam {
    @NotBlank(message = "文章标题不能为空")
    @Schema(description = "文章标题",required = true)
    private String title;
    //长度为10-500
    @Size(min = 10,max = 500,message = "文章内容长度为10-500")
    @Schema(description = "文章内容",required = true)
    private String content;
}
